Repository navigation
Every key derivation defaults to backends::hash2; no measurement or define decides a default - #4
Merged
Merged
Conversation
…ement or define decides a default The owner's decisions of 2026-11-16. default_backend and default_kdf_backend answer backends::hash2 for hkdf, hkdf_extract, hkdf_expand and pbkdf2 on every target and link set, and backends::sodium for argon2id and scrypt, their only backend; BearSSL, OpenSSL and libsodium's HKDF are reached only by naming them in the type. The profiles, the umbrella profile's reading, the per-algorithm overrides with detail/overrides.hpp, detail/ranking.hpp and the measure lane (test/measure) are removed, with their tests and messages; a former define has no effect (default_backend_former_defines). argon2id and scrypt on the default without libsodium stop with sodium.hpp's own instruction. doc/capabilities.json names each function's default (layout 3); doc/measurements.* stay as a reference measured on 2026-11-16 that decides nothing; the guide's chapter on the profile becomes the chapter on the default backend; bench's correctness program runs in every lane.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The owner's decisions of 2026-11-16 (proposal: webcpporg/proposals#17, design D33).
default_backend/default_kdf_backendkeep their signatures and answerbackends::hash2forhkdf,hkdf_extract,hkdf_expandandpbkdf2on every target and link set,backends::sodiumforargon2idandscrypt. BearSSL, OpenSSL and libsodium's HKDF stay, tested as before, reached only by naming them in the type (hkdf<hmac_sha2_256, backends::openssl>).WEBCPP_HASH_PROFILE_*), hash's reading ofWEBCPP_PROFILE_*, the per-algorithm overridesWEBCPP_HASH_DEFAULT_BACKEND_<ALGORITHM>_<NAME>withdetail/overrides.hpp,detail/ranking.hppand the code reading it, the profile'sdetect_mismatch, their tests, messages and MSVC cases, andtest/measure. A former define compiles and has no effect (default_backend_former_defines).argon2id_default_not_linked,scrypt_default_not_linked).doc/capabilities.jsonnames each function's default (layout 3), checked bycapabilities_test.doc/measurements.*stay as a reference measured on 2026-11-16 that decides nothing.profile.adocbecomeschoosing_backend.adoc; the generated tables and llms.txt follow.bench/'s correctness program runs in every lane.The superproject side (removing
tools/hash/measure.pyand the measure lane,doc_tables.pyrendering the data chapters) is webcpporg/webcpp'shash/defaults-hash2. This branch is independent of #3.Verified locally: test and example from scratch on native, wasip2, wasip3, emscripten and gcc-15; libs/crypto native; the tools' tests; full lint clean;
b2 -a docandb2 site.🤖 Generated with Claude Code